package com.arong.swing.db.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class EquiptMonitor implements Serializable{ 
	private static final long serialVersionUID = -8764767113185995025L;

	private String id;

	private String eqtId;

	private String activeType;

	private Timestamp activeTime;

	private String activeResult;

	private String activeDetail;

	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public void setEqtId(String eqtId) {
		this.eqtId = eqtId;
	}
	
	public String getEqtId() {
		return eqtId;
	}

	public void setActiveType(String activeType) {
		this.activeType = activeType;
	}
	
	public String getActiveType() {
		return activeType;
	}

	public void setActiveTime(Timestamp activeTime) {
		this.activeTime = activeTime;
	}
	
	public Timestamp getActiveTime() {
		return activeTime;
	}

	public void setActiveResult(String activeResult) {
		this.activeResult = activeResult;
	}
	
	public String getActiveResult() {
		return activeResult;
	}

	public void setActiveDetail(String activeDetail) {
		this.activeDetail = activeDetail;
	}
	
	public String getActiveDetail() {
		return activeDetail;
	}

	public boolean equals(Object obj) {
		boolean equals = false;
		if (obj != null && obj instanceof EquiptMonitor) {
			EquiptMonitor another = (EquiptMonitor) obj;
			equals = new EqualsBuilder()
					.append(id, another.getId())
					.isEquals();
		}
		return equals;
	}
	
	public int hashCode() {
		return new HashCodeBuilder(17, 37)
				.append(id)
				.toHashCode();
	}
	
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", getId())
				.toString();
	}
}